from likeshop.base.mybase import Tools


# 商品详情
class details_model(Tools):
    # 定义登录路径
    path = '/page/goods/getGoodsDetail'

    # 发送登录请求
    def details_action(self, sid):
        mydata = {
            'id': sid
        }
        res = self.session.get(url=self.hosturl+self.path, params=mydata)
        return res.json()
